/** 短信发送记录 */
import request from '@/utils/request'

/** 新增
 * @params {object} data
 */
export function postSmsCreat(data) {
  return request({
    method: 'POST',
    url: '/call-center/api/v1/smsSendRecord/creat',
    data
  })
}

/** 查询所有
   */
export function getSmsSendRecord() {
  return request({
    method: 'GET',
    url: '/call-center/api/v1/smsSendRecord/'
  })
}
/** 批量导入
   * @params {object} data
   */
export function postCreatBatch(data) {
  return request({
    method: 'POST',
    url: `/call-center/api/v1/smsSendRecord/creatBatch`,
    data
  })
}
/** 下载模板
 *
 */
export function download() {
  return request({
    method: 'GET',
    url: '/call-center/api/v1/smsSendRecord/download',
    responseType: 'blob'
  })
}
/** 批量导入确认 */
export function submit(data) {
  return request({
    method: 'POST',
    url: '/call-center/api/v1/smsSendRecord/submit',
    data
  })
}
